package org.yzh.web.config;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "jt-server.alarm-file.minio")
@ConditionalOnProperty(value = "jt-server.alarm-file.minio.enable", havingValue = "true")
@Data
public class MinioConfig {
    private boolean enable;
    private String url;
    private String accessKey;
    private String secretKey;
    private String bucketName;

}